﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Zen4SyncReport.DAL
{
    /// <summary>
    /// Extends the "activity" entity with convenient properties.
    /// </summary>
    public partial class activity
    {
        #region - Properties -

        /// <summary>
        /// Gets the Type of the activity as a human readable String.
        /// </summary>
        public String HumanReadableType
        {
            get
            {
                Guid typeId = this.activity_activityTypeId;
                if (typeId == GuidReference.ActivityType_MergeSync)
                    return "Merge Sync";
                else if (typeId == GuidReference.ActivityType_MefExecution)
                    return "MEF Execution";
                else if (typeId == GuidReference.ActivityType_SqlCeBackup)
                    return "SQL CE Backup";
                else if (typeId == GuidReference.ActivityType_SqlCeCheckData)
                    return "SQL CE Check Data";
                else if (typeId == GuidReference.ActivityType_SqlCeExecution)
                    return "SQL CE Execution";
                else if (typeId == GuidReference.ActivityType_SqlServerCheckData)
                    return "SQL Server Check Data";
                else if (typeId == GuidReference.ActivityType_SqlServerExecution)
                    return "SQL Server Execution";
                else
                    return "Unknown Type";
            }
        }

        #endregion - Properties -
    }
}
